﻿@model PagedList.IPagedList<FTBS.Models.Entities.Concert.TicketDetailsConcertEntity>
@using PagedList.Mvc;
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
@{
    ViewBag.Title = "Chi tiết hoá đơn";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div style="background-color: white; width: 100%;min-height: 511px">
    <table style="background-color: white">
        <tr style="vertical-align: top">
            <td style="max-width: 400px">
                @Html.Partial("~/Views/Shared/_CustomerMenu.cshtml")
                </td>
            <td>
                <h2 style="font-weight: bold; text-align: center">Chi tiết hoá đơn</h2>
                <div>
                    <table class="table border" border="2" style="text-align: left; background-color: lightyellow;max-width: 725px ; margin: 0px 0px 0px 30px">
                        <tr>
                            <th>Phim</th>
                            <th>Rạp</th>
                            <th>Phòng</th>
                            <th>Vị trí ghế</th>
                            <th>Loại ghế</th>
                            <th>Giờ chiếu</th>
                            <th>Ngày chiếu</th>
                        </tr>
                        @foreach(var item in Model)
                        {
                            <tr>
                                <td>@item.FilmName</td>
                                <td>@item.TheaterName</td>
                                <td>@item.RoomName</td>
                                <td style="text-align: center">@item.Position</td>
                                <td  style="text-align: center">
                                    @item.ChairTypeName
                                </td>
                                <td>
                                    @item.TimeForShow
                                </td>
                                <td>
                                    @item.DateForShow
                                </td>
                            </tr>
                        }
                    </table>
                </div>
                <div style="float: right">
                    <br />
                    <div style="float: right">
                        Trang @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) của @Model.PageCount trang
                    </div>
                    <div>
                        @Html.PagedListPager(Model, page => Url.Action("ViewTicketCartDetails",
                                                                       new { page}))
                    </div>
                </div>
                <br />
                <div>
                    <button class="button danger">
                        @Html.ActionLink("Quay Lại", "ViewPastBooking")
                    </button>
                </div>
                @*<a href="/Customer/ViewPastBooking">Quay lại</a>*@
            </td>
           
        </tr>
    </table>
</div>